package com.hzit.loan.repay.iclent;

import com.hzit.loan.repay.iclent.impl.PayWebClientImpl;
import com.hzit.payweb.api.req.PayReq;
import com.hzit.payweb.api.resp.RespVo;
import com.hzit.payweb.api.resp.data.PayRespData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 支付服务的接口
 */
@FeignClient(value = "HZIT-PAY-WEB",fallback = PayWebClientImpl.class )
public interface IPayWebClient {


    /**
     * 异步支付：统一入口
     * @param payReq
     * @return
     */
    @RequestMapping("/pay/create")
    public RespVo<PayRespData> pay(@RequestBody PayReq payReq);

}
